
using System.Data.Entity.ModelConfiguration;

namespace OBUCare.Core.Models.Mapping
{
    public class View_Received_Returned_MoneyMap : EntityTypeConfiguration<View_Received_Returned_Money>
    {
        public View_Received_Returned_MoneyMap()
        {
            // Primary Key
            this.HasKey(t => t.ReturnToFinance);

            // Properties
            this.Property(t => t.AGENT_NO)
                .HasMaxLength(12);

            this.Property(t => t.AGENT_NAME)
                .HasMaxLength(50);

            this.Property(t => t.OPERATOR_NO)
                .HasMaxLength(6);

            this.Property(t => t.OPERATOR_NAME)
                .HasMaxLength(50);

          
            // Table & Column Mappings
            this.ToTable("View_Received_Returned_Money");
            this.Property(t => t.RECORD_TIME).HasColumnName("RECORD_TIME");
            this.Property(t => t.AGENT_NO).HasColumnName("AGENT_NO");
            this.Property(t => t.AGENT_NAME).HasColumnName("AGENT_NAME");
            this.Property(t => t.OPERATOR_NO).HasColumnName("OPERATOR_NO");
            this.Property(t => t.OPERATOR_NAME).HasColumnName("OPERATOR_NAME");
            this.Property(t => t.from_0).HasColumnName("from_0");
            this.Property(t => t.from_1).HasColumnName("from_1");
            this.Property(t => t.from_2).HasColumnName("from_2");
            this.Property(t => t.from_3).HasColumnName("from_3");
            this.Property(t => t.from_4).HasColumnName("from_4");
            this.Property(t => t.from_5).HasColumnName("from_5");
            this.Property(t => t.from_10).HasColumnName("from_10");
            this.Property(t => t.AmountAll).HasColumnName("AmountAll");
            this.Property(t => t.ReturnedAmount).HasColumnName("ReturnedAmount");
            this.Property(t => t.ReturnToFinance).HasColumnName("ReturnToFinance");
            this.Property(t => t.ReturnedAllAmount).HasColumnName("ReturnedAllAmount");
        }
    }
}
